package cn.middle.remote.server;
public class LoginValidation {
	
	/**
	 * 登陆返回信息
	 */
	private String loginMessage;
	
	/**
	 * 登陆是否成功 TRUE 成功 FALSE 失败
	 */
	private boolean success;
	
	
	public static LoginValidation ok() {
		return new LoginValidation(true,"success");
	}
	
	public static LoginValidation fail(String msg) {
		return new LoginValidation(false,msg);
	}
	
	private LoginValidation(boolean success,String msg) {
		this.success = success;
		this.loginMessage = msg;
	}
	
	public String getLoginMessage() {
		return loginMessage;
	}
	public void setLoginMessage(String loginMessage) {
		this.loginMessage = loginMessage;
	}
	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}

}